package cn.linstudy.third.controller;

import cn.linstudy.common.utils.R;
import cn.linstudy.third.utils.OSSUtil;
import com.aliyun.oss.OSS;
import com.aliyun.oss.common.utils.BinaryUtil;
import com.aliyun.oss.model.MatchMode;
import com.aliyun.oss.model.PolicyConditions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

@RestController("/third")
public class OssController {

    @RequestMapping("/oss/policy")
    public R policy() {
        return OSSUtil.policy();
    }
}
